package com.nfit.shopweb.mapper;

import com.nfit.shopmodel.entity.product.ProductDetails;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName:ProductDetailsMapper
 * Package:com.nfit.shopweb.mapper
 * Description
 *
 * @Author L
 * @Create 2024/12/19 11:24
 */
@Mapper
public interface ProductDetailsMapper {

    void save(ProductDetails productDetails);

    /**
     * 根据商品id查询对应的商品详情对象
     */
    ProductDetails findByProductId(Long id);

    /**
     * 根据id修改商品详情信息
     */
    void update(ProductDetails productDetails);

    void delete(Long id);
}
